MediaDownloader

interface MediaDownloader

Provides progress and status of a media download task.

Properties

Link copied to clipboard
@get:IntRange(from = 0, to = 100)
abstract val currentFileProgress: Int

Current file download progress.

Link copied to clipboard
abstract val currentMedia: MediaItem?

Media whose resource(s) are currently being downloaded.

Link copied to clipboard
@get:IntRange(from = 1)
abstract val currentMediaIndex: Int

Index of the media whose resources are currently being downloaded.

Link copied to clipboard

Currently downloaded resource.

Link copied to clipboard
@get:IntRange(from = 1)
abstract val currentResourceIndex: Int

Index of the resource being currently downloaded.

Link copied to clipboard
abstract val downloadedFile: File?

Downloaded file.

Link copied to clipboard
abstract val signatureFile: File?

Downloaded media signature file.

Link copied to clipboard
abstract val status: MediaTaskStatus

Current task status.

Link copied to clipboard
@get:IntRange(from = 1)
abstract val totalMediaCount: Int

Total amount of media containing resource(s) to download.

Link copied to clipboard
@get:IntRange(from = 0, to = 100)
abstract val totalProgress: Int

Total task progress

Link copied to clipboard
@get:IntRange(from = 1)
abstract val totalResourceCount: Int

Total amount of resource(s) to download.